package com.atguigu.springcloud.alibaba.service.impl;

import com.atguigu.springcloud.alibaba.mapper.StorageMapper;
import com.atguigu.springcloud.alibaba.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author timiv
 */
@Service
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageMapper mapper;

    @Override
    public void subStorage(Long productId, Integer count) {
        mapper.subStorage(productId, count);
    }
}
